package com.mlh.springboot.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @author 缪林辉
 * @date 2024/3/3 16:32
 * @DESCRIPTION
 */
//自定义异常，也会根据状态码，匹配到对应的错误页面显示
@ResponseStatus(value=HttpStatus.FORBIDDEN)//状态码是多少，取决于这里的value
public class AccessException extends RuntimeException {
    public AccessException() {
    }
    public AccessException(String message) {
        super(message);
    }
}
